package dao.hiberante;

import java.util.Iterator;
import java.util.List;


import bean.teacher;

public class teacherTest {
	public static void main(String[] args) {
		teacher one = new teacher();
	    one.setName("huweiji");
	    one.setPassword("hello");
	    one.sett_ID("5");

	    
	    teacherDAO db = new teacherDAO();
	    
	    /*
	    db.delete(one);

	    List l = db.queryALL();

		if(l != null){
		  Iterator it=l.iterator();
		  while(it.hasNext()){
		   teacher s =(teacher)it.next();
		   System.out.println("studentID:"+s.gett_ID()+" name:"+s.getName()+" password:"+s.getPassword());
		  }
		 }
		 */
	}
}
